import request from "@/utils/request";

/**
 * 获取处方备注列表
 * @param {Object} params 查询参数
 * @returns {Promise} 返回处方备注列表数据
 */
export function getRemarkListByConditionApi(params) {
  return request({
    url: "/config/dict/getRemarkListByCondition",
    method: "get",
    params,
  });
}

/**
 * 添加处方备注
 * @param {Object} data 处方备注信息
 * @returns {Promise} 返回添加结果
 */
export function addRemarkApi(data) {
  return request({
    url: "/config/dict/addRemark",
    method: "post",
    data,
  });
}

/**
 * 更新处方备注
 * @param {Object} data 处方备注信息
 * @returns {Promise} 返回更新结果
 */
export function updateRemarkApi(data) {
  return request({
    url: "/config/dict/updateRemark",
    method: "post",
    data,
  });
}

/**
 * 删除处方备注
 * @param {Object} data 删除参数
 * @returns {Promise} 返回删除结果
 */
export function deleteRemarkApi(data) {
  return request({
    url: "/config/dict/deleteRemark",
    method: "post",
    data,
  });
} 